import requests
class Customer:
    def customer_same(self,name,password,repassword,email,real_name,province,city,county):
        p = requests.session()
        p.headers.update({'verifyCode': 'aaaa'})
        data = {'name': 'admin', 'password': 123456}
        p.post('http://192.168.34.146/TinyShop_v1.7/index.php?con=admin&act=check', data)
        data = {'name':name,
        'password':password,
        'repassword':repassword,
        'email':email,
        'real_name':real_name,
        'sex':0,
        'birthday':'',
        'province':province,
        'city':city,
        'county':county,
        'addr':'',
        'phone':'',
        'mobile':'',
        'point':0}
        r = p.post('http://192.168.34.146/TinyShop_v1.7/index.php?con=customer&act=customer_save', data)
        s = r.text
        return s
